#define MAX_BATCH_SIZE 1024
-#define DEBUG 1
+#define DEBUG 0
#if DEBUG
#define DPRINTF(_f, _a...) printf ( _f , ## _a )
{
if ( pfn_type[i] == (L1TAB|LPINTAB) )
{
-printf("XXXXXXXXXXXXXXX pin L1\n");
if ( add_mmu_update(xc_handle, mmu,
(pfn_to_mfn_table[i]<<PAGE_SHIFT) |
MMU_EXTENDED_COMMAND,
}
else if ( pfn_type[i] == (L2TAB|LPINTAB) )
{
-printf("XXXXXXXXXXXXXXX pin L2\n");
if ( add_mmu_update(xc_handle, mmu,
(pfn_to_mfn_table[i]<<PAGE_SHIFT) |
MMU_EXTENDED_COMMAND,
#define BATCH_SIZE 1024 /* 1024 pages (4MB) at a time */
-#define DEBUG 1
-#define DDEBUG 1
+#define DEBUG 0
+#define DDEBUG 0
#if DEBUG
#define DPRINTF(_f, _a...) printf ( _f , ## _a )
/* Setup the mfn_to_pfn table mapping */
mfn_to_pfn_table_start_mfn = xc_get_m2p_start_mfn( xc_handle );
-printf("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n");
+
live_mfn_to_pfn_table =
xc_map_foreign_range(xc_handle, DOMID_XEN,
PAGE_SIZE*1024, PROT_READ,
mfn_to_pfn_table_start_mfn );
-printf("BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\n");
+
/* Canonicalise the pfn-to-mfn table frame-number list. */
memcpy( pfn_to_mfn_frame_list, live_pfn_to_mfn_frame_list, PAGE_SIZE );
/* Domain is still running at this point */
- if( live ){
-printf("GO LIVE!!\n");
+ if( live )
+ {
if ( xc_shadow_control( xc_handle, domid,
DOM0_SHADOW_CONTROL_OP_ENABLE_LOGDIRTY,
NULL, 0, NULL ) < 0 ) {
for ( j = 0; j < batch; j++ ){
if ( (pfn_type[j] & LTAB_MASK) == XTAB ){
DDPRINTF("type fail: page %i mfn %08lx\n",j,pfn_type[j]);
-printf("type fail: page %i mfn %08lx\n",j,pfn_type[j]);
continue;
}
goto out;
}
-
-printf("nrpfns according to suspend record is %ld\n", p_srec->nr_pfns );
-
if (nr_pfns != p_srec->nr_pfns )
{
xcio_error(ioctxt, "Suspend record nr_pfns unexpected (%ld != %ld)",
goto out;
}
-printf("Everything saved OK!\n");
out:
if ( live_shinfo ) munmap(live_shinfo, PAGE_SIZE);